package com.juc.semaphore.semaphore3;

public class Run {
    public static void main(String[] args) {
       Service service = new Service();
        ThreadA[] a = new ThreadA[20];
        for (int i = 0; i < 20; i++) {
            a[i] = new ThreadA(service);
            a[i].start();
        }
    }
}
